package com.xnyzc.lhy.task.fegin.statistics;

import com.xnyzc.lhy.common.entity.Rv;
import com.xnyzc.lhy.task.config.TokenAuthConfiguration;
import com.xnyzc.lhy.task.fallback.statistics.QuartzCapacityStatisticsFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @Author: wangshuo
 * @Date: 2019-11-28
 * @Description 运力统计
 */
@Service
@FeignClient(name = "${feign.applicationName.statistics}", configuration = TokenAuthConfiguration.class, fallback = QuartzCapacityStatisticsFallback.class)
public interface QuartzCapacityStatisticsService {

    /**
     * 保存运力统计
     * */
    @GetMapping(value = "/cmsapi/capacity/getSaveCapacityStatistical")
    void getSaveCapacityStatistical();

    /**
     * 司机出车数保存
     * @return
     */
    @GetMapping("/search/capacity/saveDriveOutCount")
    Rv saveDriveOutCount();

    /**
     * 日活司机保存
     * @return
     */
    @GetMapping("/search/capacity/saveActiveDriver")
    Rv saveActiveDriver();

}
